import { EConfigItemPropsType, EDoneJsonType, IConfigItem } from '@/config-center/types';

export const terminal_svg_cabinet: IConfigItem = {
  name: 'terminal-svg-cabinet',
  title: '温度机柜',
  tag: 'terminal-svg-cabinet',
  type: EDoneJsonType.CustomSvg,
  display: true,
  config: {
    can_zoom: true,
    have_anchor: false,
    actual_rect: true
  },
  props: {
    text: {
      title: '机柜名称',
      type: EConfigItemPropsType.Input,
      val: 'A01'
    },
    cabinetType: {
      title: '机柜类型',
      type: EConfigItemPropsType.Select,
      val: '1',
      options: [
        {
          value: '0',
          label: '无'
        },
        {
          value: '1',
          label: '左侧'
        },
        {
          value: '2',
          label: '右侧'
        },
        {
          value: '3',
          label: '双侧'
        }
      ]
    },
    imeasureType: {
      title: '测量类型',
      type: EConfigItemPropsType.Select,
      val: '1',
      options: [
        {
          value: '0',
          label: '无'
        },
        {
          value: '1',
          label: '左侧温度计'
        },
        {
          value: '2',
          label: '右侧温度计'
        },
        {
          value: '3',
          label: '左侧温湿度计'
        },
        {
          value: '4',
          label: '右侧温湿度计'
        }
      ]
    },
    fontSize: {
      title: '机柜文字大小',
      type: EConfigItemPropsType.InputNumber,
      val: 10
    },
    fill: {
      title: '机柜文字颜色',
      type: EConfigItemPropsType.Color,
      val: '#f0fffd'
    },
    tem: {
      title: '温度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    temSize: {
      title: '温度文字大小',
      type: EConfigItemPropsType.InputNumber,
      val: 9
    },
    hum: {
      title: '湿度',
      type: EConfigItemPropsType.InputNumber,
      val: 0
    },
    humSize: {
      title: '湿度文字大小',
      type: EConfigItemPropsType.InputNumber,
      val: 9
    }
  },
  common_animations: {
    val: '',
    delay: 'delay-0s',
    speed: 'slow',
    repeat: 'infinite'
  }
};
